/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.service;

import org.springblade.modules.admin.entity.MaintainSignCalendar;
import org.springblade.modules.admin.entity.UserWorkforceSign;
import org.springblade.modules.admin.vo.UserReportConfigListVO;
import org.springblade.modules.admin.vo.UserWorkforceSignVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.admin.vo.sign.SignWorkforceAddVo;
import org.springblade.modules.admin.vo.sign.SignWorkforceUserVo;

import java.util.Date;
import java.util.List;

/**
 * 用户考勤排班计划表 服务类
 *
 * @author ysq
 * @since 2024-10-09
 */
public interface IUserWorkforceSignService extends BaseService<UserWorkforceSign> {


	/**
	 * 添加值班
	 *
	 * @param signWorkforceAddVos
	 */
	void batchAdd(List<SignWorkforceAddVo> signWorkforceAddVos);

	/**
	 * 添加直播
	 *
	 * @param signWorkforceAddVos
	 */
	void add(SignWorkforceAddVo signWorkforceAddVos);


	/**
	 * 小组值班列表
	 *
	 * @param date    查询日期
	 * @param holiday 类型 0: 工作日，1: 休息日
	 * @return 数据集
	 */
	List<SignWorkforceUserVo> groupList(Date date, Integer holiday);


	/**
	 * 小组值班excel 查询
	 *
	 * @param beginDate 开始时间
	 * @param endDate   结束时间
	 * @return 数据集
	 */
	List<List<String>>  listExcel(Date beginDate, Date endDate);


	/**
	 * 获取排班日历
	 *
	 * @param signWorkforceAddVo 查询条件
	 * @return 数据集
	 */
	List<MaintainSignCalendar> signDateList(SignWorkforceAddVo signWorkforceAddVo);


	/**
	 * 发送值班计划
	 *
	 * @param signWorkforceAddVo 发送条件
	 */
	void sendMessage(SignWorkforceAddVo signWorkforceAddVo);


	/**
	 * 小组值班明细
	 *
	 * @param signWorkforceAddVo 查询条件
	 * @return 数据集
	 */
	List<UserReportConfigListVO> listDetail(IPage<UserReportConfigListVO> page, SignWorkforceAddVo signWorkforceAddVo);

	/**
	 * 获取所有的考勤人员
	 * @param signWorkforceAddVo
	 * @return
	 */
	List<SignWorkforceUserVo> getSignUserList(SignWorkforceAddVo signWorkforceAddVo);
}
